<?php

// phpMyRealty 3
//
// File Name: common_footer.php
// File Location : ./includes/
//
// Copyright (c)2009 phpMyRealty.com
//
// e-mail: support@phpMyRealty.com

// Close the database link
$db->close();

// Gzip (compress) the page output if allowed by admin and
// server and browser support it
if ( $conf['gzip'] == 'ON' && ereg ( 'gzip', $SERVER_ENCODING ) && extension_loaded ( 'zlib' ) ) {

 $gzip_contents = ob_get_contents();
 ob_end_clean();
 $gzip_size = strlen($gzip_contents);
 $gzip_crc = crc32($gzip_contents);
 $gzip_contents = gzcompress($gzip_contents, 9);
 $gzip_contents = substr($gzip_contents, 0, strlen($gzip_contents) - 4);

 echo "\x1f\x8b\x08\x00\x00\x00\x00\x00";
 echo $gzip_contents;
 echo pack("V", $gzip_crc);
 echo pack("V", $gzip_size);

}

// Unset all sql / mail datails for the security purposes
unset ( $dbi );
unset ( $smtp );

// Output footer copyright
echo '
Powered by <a href="http://www.accesshome.com.au" target="_blank">accesshome</a>
';



?>